home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Mac Power 1997 December
/
MACPOWER-1997-12.ISO.7z
/
MACPOWER-1997-12.ISO
/
AMUG
/
PROGRAMMING
/
Raven 1.2.sit
/
Raven 1.2
/
Source
/
Foundation
/
Common
/
ZTrace.h
< prev
next >
Wrap
Text File
|
1997-06-18
|
1KB
|
61 lines
/*
* File: ZTrace.h
* Summary: A class that allows flexible control over what debug
* output is printed.
* Written by: Jesse Jones
*
* Copyright ゥ 1996 Jesse Jones.
* For conditions of distribution and use, see copyright notice in ZTypes.h
*
* Change History (most recent first):
*
* <-> 1/16/96 JDJ created
*/
#pragma once
#if DEBUG
#include <String>
#include <ZTypes.h>
// ===================================================================================
// class UTraceFlow
// ===================================================================================
class UTraceFlow {
public:
static void EnableCategory(const string& category);
// See cpp for a list of the categories in Raven and the ones that
// are enabled by default.
static void DisableCategory(const string& category);
static bool IsCategoryEnabled(const string& category);
static ulong GetNumCategories();
static void ResetCursor();
static string GetNextCategory();
static bool CursorAtEnd();
static void Trace(const string& mesg);
// Note that these functions optionally echo everything to a file.
static void TraceFlow(const string& category, const string& mesg);
static bool msEchoToSIOUX;
static bool msEchoToFile;
static bool msEchoAllToFile; // if true disabled TRACEFLOW categories get echoed to the debug file
};
#endif // DEBUG